<?php
    // estilos -- ver por qué no puedo usar class con un css - otra clase debe estar bloqueandolo
    $tabla_orga_td = 'vertical-align: middle; background-color: ; border: none;';    

    // imagenes
    $prev_img = $this->Html->image("restaurante/ic_navegar_left.png", array("width" => "32px", "height" => "32px", "id" => "nav_icon_left"));    
    $next_img = $this->Html->image("restaurante/ic_navegar.png", array("width" => "32px", "height" => "32px", "id" => "nav_icon_right"));    
    $prev_img_disabled = $this->Html->image("restaurante/ic_nav_left_disabled.png", array("width" => "32px", "height" => "32px", "id" => "nav_icon_left_disabled"));    
    $next_img_disabled = $this->Html->image("restaurante/ic_navegar_disabled.png", array("width" => "32px", "height" => "32px", "id" => "nav_icon_right_disabled"));    

    $volver_img = $this->Html->image("restaurante/ic_close.png", array("id" => "back_icon"));    
    $nuevo_img = $this->Html->image("restaurante/ic_add.png", array("id" => "add_icon"));    
    $cancel_img = $this->Html->image("restaurante/ic_cancel.png", array("id" => "back_icon"));    
    $save_img = $this->Html->image("restaurante/ic_ok.png", array("id" => "save_icon"));    
    
    $editar_img = $this->Html->image("restaurante/doc_images.png", array("width" => "24px", "height" => "24px"));    
    
?>

<!--- MARCO DE LA PANTALLA ------>
<table><tr><td style="padding: 20px; background: white; border: none;">

<table>
    <tr>
        <td style="width: 15%; text-align:right; <?php echo $tabla_orga_td;?>"><?php echo $this->Html->image("restaurante/ic_resto.png", array("width" => "64px", "height" => "64px", "id" => "resto_icon"));?></td>
        <td style="width: 55%; text-align:left; <?php echo $tabla_orga_td;?>"><h1 class="titulo_ventana">SMARTDINNER ADMINISTRACIÓN</h1></td>
        <td style="width: 30%; text-align:right; <?php echo $tabla_orga_td;?>">
            <table>
                <tr><td style="text-align:right; <?php echo $tabla_orga_td;?>"><?php echo 'Usuario: '.$nombre_usuario;?></td></tr>
                <tr><td style="text-align:right; <?php echo $tabla_orga_td;?>"><?php echo $this->Html->link('Cerrar sesión', array("controller"=>"users", "action"=>"logout"), array('title' => 'Cerrar sesión', 'escape' => false));?></td></tr>
            </table>
        </td>
    </tr>      
</table>
<hr>

<table><tr>
<td style="border: none; width: 30%;">
    <table>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php echo $this->Html->image('restaurante/payment_icon2.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php echo $this->Html->link('Listado de pedidos', array("controller"=>"pedidos", "action"=>"index"), array('class' => 'button', 'title' => 'Pedidos', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php echo $this->Html->image('restaurante/menu_icon2.jpg', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php echo $this->Html->link('Menú de productos', array("controller"=>"menus", "action"=>"index"), array('class' => 'button', 'title' => 'Menú de productos', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/reports2.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Reporte de facturación', array("controller"=>"pedidos", "action"=>"facturacion"), array('class' => 'button', 'title' => 'Reporte de Facturacion', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/ranking4.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Reporte de Productos', array("controller"=>"pedidos", "action"=>"rankproductos"), array('class' => 'button', 'title' => 'Reporte de Productos', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>

    </table>
</td>
<td style="border: none; width: 10%;">
    <table>
        <tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/rubros icon.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Rubros', array("controller"=>"rubros", "action"=>"index"), array('class' => 'button', 'title' => 'Configuración de Rubros', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/subrubros icon.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Subrubros', array("controller"=>"subrubros", "action"=>"index"), array('class' => 'button', 'title' => 'Configuración de Subrubros', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/productos.jpg', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Productos', array("controller"=>"productos", "action"=>"index"), array('class' => 'button', 'title' => 'Configuración de Productos', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/User3.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Usuarios', array("controller"=>"users", "action"=>"index"), array('class' => 'button', 'title' => 'Configuración de Usuarios', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
    </table>
<td style="border: none; width: 30%;">
    <table>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/ensaladas.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Agregados', array("controller"=>"agregados", "action"=>"index"), array('class' => 'button', 'title' => 'Administración de Agregados', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/mesas_icon2.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración de Mesas', array("controller"=>"mesas", "action"=>"index"), array('class' => 'button', 'title' => 'Administración de Mesas', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
        <tr>
            <td style="background-color: transparent; border: none; width: 25%; text-align: right; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->image('restaurante/sale_icon1.png', array('width'=>'96px','height'=>'96px'));?></td>
            <td style="background-color: transparent; border: none; width: 75%; text-align: left; vertical-align: middle;"><?php if($cargo_usuario == 4) echo $this->Html->link('Configuración Descuentos', array("controller"=>"descuentos", "action"=>"index"), array('class' => 'button', 'title' => 'Configuración Descuentos', 'class' => 'main-menu-item', 'style' => 'width:300px'));?></td>
        </tr>
    </table>
    
</td>
</tr></table>
    
<div style="text-align: right;"><?php echo $this->Html->image("restaurante/chef-icon-01.jpg", 
                                                array("id" => "chef_icon", 'height' => '150px', 'width' => '150px'));?></div>

<!--- FIN MARCO DE LA PANTALLA ------>
</td></tr></table>
